Write Parcelable for ArrayList<String []> in android?

Posted by sugan.s on Stack Overflow See other posts from Stack Overflow or by sugan.s
Published on 2013-07-02T04:50:58Z Indexed on 2013/07/02 5:05 UTC
Read the original article Hit count: 273

I just created model with String array and array list of string array.Like this

public class LookUpModel implements Parcelable
{
    private String [] lookup_header;
    private ArrayList<String []> loookup_values;

 public void writeToParcel(Parcel dest, int flags) {

            dest.writeStringArray(getLookup_header());

        };

}

I have implemented parcelbale then write for String [] but how to do for the ArrayList<String []> and that values need to pass to another activity.Thanks in advance.

© Stack Overflow or respective owner

Related posts about android

Related posts about arraylist